<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module Place</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head><body bgcolor="#f0f0f8">

<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong>Place</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/geoff/workspace/svn/trunk/DreamPark/modele/Place.py">/home/geoff/workspace/svn/trunk/DreamPark/modele/Place.py</a></font></td></tr></table>
    <p><tt>Created&nbsp;on&nbsp;11&nbsp;déc.&nbsp;2014<br>
&nbsp;<br>
@author:&nbsp;Damien&nbsp;Torond&nbsp;et&nbsp;Geoffrey&nbsp;Sentost<br>
Module&nbsp;<a href="#Place">Place</a></tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
    
<tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="modele.Placement.html">modele.Placement</a><br>
</td><td width="25%" valign=top></td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
    
<tr><td bgcolor="#ee77aa"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl>
<dt><font face="helvetica, arial"><a href="builtins.html#object">builtins.object</a>
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="Place.html#Place">Place</a>
</font></dt></dl>
</dd>
</dl>
 <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="Place">class <strong>Place</strong></a>(<a href="builtins.html#object">builtins.object</a>)</font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>La&nbsp;classe&nbsp;<a href="#Place">Place</a>&nbsp;modelise&nbsp;une&nbsp;place&nbsp;physique&nbsp;dans&nbsp;le&nbsp;parking.<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="Place-__init__"><strong>__init__</strong></a>(self, niveau, pNum, pLong=None, pLarg=None, pLibre=None)</dt><dd><tt>Constructeur&nbsp;de&nbsp;la&nbsp;classe&nbsp;<a href="#Place">Place</a>.<br>
Attributs:<br>
&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;longueur&nbsp;de&nbsp;type&nbsp;string,&nbsp;longueur&nbsp;de&nbsp;la&nbsp;place.<br>
&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;largeur&nbsp;de&nbsp;type&nbsp;string,&nbsp;largeur&nbsp;de&nbsp;la&nbsp;place.<br>
&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;numero&nbsp;de&nbsp;type&nbsp;int,&nbsp;numero&nbsp;de&nbsp;la&nbsp;place.<br>
&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;estLibre&nbsp;de&nbsp;type&nbsp;booleen,&nbsp;pour&nbsp;savoir&nbsp;si&nbsp;la&nbsp;place&nbsp;est&nbsp;libre&nbsp;ou&nbsp;pas.<br>
&nbsp;&nbsp;&nbsp;&nbsp;les&nbsp;attributs&nbsp;seront&nbsp;choisit&nbsp;aleatoirement,&nbsp;estLibre&nbsp;a&nbsp;True&nbsp;et&nbsp;numero&nbsp;modelise<br>
&nbsp;&nbsp;&nbsp;&nbsp;avec&nbsp;str().</tt></dd></dl>

<dl><dt><a name="Place-allouerPlace"><strong>allouerPlace</strong></a>(self, voiture, bdd)</dt><dd><tt>Methode&nbsp;:&nbsp;demande&nbsp;une&nbsp;instance&nbsp;de&nbsp;CtrlBdd&nbsp;et&nbsp;de&nbsp;la&nbsp;classe&nbsp;Voiture.<br>
Permet&nbsp;d'allouer&nbsp;un&nbsp;place&nbsp;a&nbsp;une&nbsp;voiture&nbsp;et&nbsp;un&nbsp;client.<br>
On&nbsp;verifie&nbsp;si&nbsp;le&nbsp;client&nbsp;est&nbsp;superAbonne&nbsp;car&nbsp;il&nbsp;a&nbsp;une&nbsp;place&nbsp;permanente<br>
la&nbsp;place&nbsp;n'est&nbsp;ainsi&nbsp;plus&nbsp;libre.<br>
On&nbsp;met&nbsp;aussi&nbsp;a&nbsp;jour&nbsp;la&nbsp;base&nbsp;de&nbsp;donnees&nbsp;avec&nbsp;le&nbsp;nouveau&nbsp;placement.</tt></dd></dl>

<dl><dt><a name="Place-getLargeur"><strong>getLargeur</strong></a>(self)</dt><dd><tt>Methode&nbsp;:&nbsp;accesseur&nbsp;de&nbsp;l'attribut&nbsp;largeur&nbsp;qui&nbsp;retourne&nbsp;celui-ci.</tt></dd></dl>

<dl><dt><a name="Place-getLongueur"><strong>getLongueur</strong></a>(self)</dt><dd><tt>Methode&nbsp;:&nbsp;accesseur&nbsp;de&nbsp;l'attribut&nbsp;longueur&nbsp;qui&nbsp;retourne&nbsp;celui-ci.</tt></dd></dl>

<dl><dt><a name="Place-getNumNiveau"><strong>getNumNiveau</strong></a>(self)</dt><dd><tt>Methode&nbsp;:&nbsp;accesseur&nbsp;du&nbsp;numero&nbsp;du&nbsp;niveau.</tt></dd></dl>

<dl><dt><a name="Place-getNumPlace"><strong>getNumPlace</strong></a>(self)</dt><dd><tt>Methode&nbsp;:&nbsp;accesseur&nbsp;de&nbsp;l'attribut&nbsp;numero&nbsp;qui&nbsp;retourne&nbsp;celui-ci.</tt></dd></dl>

<dl><dt><a name="Place-getPeutEtreGaree"><strong>getPeutEtreGaree</strong></a>(self, imageVoiture)</dt><dd><tt>Methode&nbsp;:&nbsp;demande&nbsp;une&nbsp;imageVoiture&nbsp;en&nbsp;parametre.<br>
Retourne&nbsp;l'image&nbsp;afin&nbsp;de&nbsp;savoir&nbsp;si&nbsp;la&nbsp;voiture,&nbsp;avec&nbsp;ses&nbsp;dimensions,&nbsp;peut&nbsp;etre<br>
mis&nbsp;dans&nbsp;le&nbsp;placement.&nbsp;On&nbsp;verifie&nbsp;si&nbsp;celle&nbsp;ci&nbsp;est&nbsp;libre.</tt></dd></dl>

<dl><dt><a name="Place-libererPlace"><strong>libererPlace</strong></a>(self, voiture, bdd)</dt><dd><tt>Methode&nbsp;:&nbsp;demande&nbsp;une&nbsp;instance&nbsp;de&nbsp;CtrlBdd&nbsp;et&nbsp;de&nbsp;la&nbsp;classe&nbsp;Voiture.<br>
Permet&nbsp;de&nbsp;liberer&nbsp;un&nbsp;place&nbsp;a&nbsp;une&nbsp;voiture&nbsp;et&nbsp;un&nbsp;client.<br>
On&nbsp;verifie&nbsp;si&nbsp;le&nbsp;client&nbsp;est&nbsp;superAbonne&nbsp;car&nbsp;la&nbsp;place&nbsp;doit&nbsp;rester&nbsp;intact&nbsp;pour&nbsp;celui&nbsp;ci<br>
la&nbsp;place&nbsp;est&nbsp;a&nbsp;nouveau&nbsp;libre.<br>
On&nbsp;met&nbsp;aussi&nbsp;a&nbsp;jour&nbsp;la&nbsp;base&nbsp;de&nbsp;donnees&nbsp;avec&nbsp;le&nbsp;nouveau&nbsp;placement&nbsp;.</tt></dd></dl>

<hr>
Data descriptors defined here:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
</td></tr></table></td></tr></table>
</body></html>